package com.csce.domain.entity.face;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.osce.common.annotation.Excel;
import com.osce.common.core.entity.BaseEntity;
import lombok.*;

import java.util.Date;
import java.util.List;

/**
 * 人脸白名单对象 face_white_list
 *
 * @author zzx
 * @since 2023-11-21
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@Builder
@ToString
@EqualsAndHashCode(callSuper = true)
public class FaceWhiteList extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 用户编号
     */
    @Excel(name = "用户编号")
    private Long userId;
    private String userName;

    /**
     * 考站编号
     */
    @Excel(name = "考站编号")
    private Long placeId;
    private String placeName;

    /**
     * 是否永久
     */
    @Excel(name = "是否永久")
    private Integer forever;

    /**
     * 开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /**
     * 结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /**
     * 预留字段1
     */
    @Excel(name = "预留字段1")
    private String reservedOne;

    /**
     * 预留字段2
     */
    @Excel(name = "预留字段2")
    private String reservedTwo;

    private List<Long> userList;
    private List<Long> placeList;

}
